import request from '@/utils/request'

// 获取收藏列表
export function getMyCollection(data) {
  return request({
    url: '/archive/my/collect/list?pageNum='+data.pageNum+'&pageSize='+data.pageSize,
    method: 'post',
    data: data
  })
}

// 删除收藏列表
export function deleteMyCollection(id) {
  return request({
    url: '/archive/my/collect/' + id,
    method: 'delete'
  })
}

// 新增收藏
export function addMyCollection(data) {
  return request({
    url: '/archive/my/collect',
    method: 'post',
    data: data
  })
}
